package org.dashboard.constant;

import java.util.Arrays;
import java.util.List;

/**
 * Copyright © 2018. All rights reserved.
 *
 * @Author: FreezeSoul
 * @CreateDate: 2018/8/3 15:38
 * @Description: Constant
 * @Version: V1.0
 */
public class Constant {

    public static final String DATA_PERMISSION_USER_IDENTITY = "USER_ID";
    public static final String DATA_PERMISSION_ROLE_IDENTITY = "ROLE_ID";
    public static final String DATA_PERMISSION_ROLES_IDENTITY = "ROLE_LIST";

    public static final String DEFAULT_CACHE_MANAGER = "ehCacheCacheManager";
    public static final List<String> DEFAULT_CACHE_NAME_LIST = Arrays.asList("chart", "page", "user", "role", "source", "dataset", "schema");


    public static final Integer RESOURCE_TYPE_PAGE = 1;
    public static final Integer RESOURCE_TYPE_CHART = 2;

    public static final Integer ROLE_TYPE_MANAGER = 0;
    public static final Integer ROLE_TYPE_SIMPLE = 1;

    public static final Integer MAX_DATASET_ROW_COUNT = 3000;
}
